package com.chenjt.jvm.third.jstat;

import java.util.ArrayList;

/**
 * 注释：
 *
 * -Xms60m -Xmx60m -XX:SurvivorRatio=8
 *
 * @author chenjt
 * @date 2025/7/7 10:54
 */
public class GCTest {

    public static void main(String[] args) {
        ArrayList<byte[]> list = new ArrayList<>();

        for (int i = 0; i < 1000; i++) {
            byte[] arr = new byte[1024 * 1024];// 100KB
            list.add(arr);
            try {
                Thread.sleep(120);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

    }


}
